{% extends '../admin_nav.html' %}

{% block main %}
<!--用户列表页面-->

<ol class="breadcrumb">
    <li><a href="#">管理首页</a></li>
    <li><span>分类列表</span></li>
</ol>

<h3>分类列表</h3>
<table class="table table-hover table-striped">
    <tr>
        <th>ID</th>
        <th>分类名称</th>
        <th>操作</th>

    </tr>
    {% for category in categories %}
    <tr>
        <th>{{category._id.toString()}}</th>
        <th>{{category.name}}</th>
        <th>
            <a href="/admin/category/edit?id={{category._id.toString()}}">修改</a>
            <a href="/admin/category/delete?id={{category._id.toString()}}">删除</a>
        </th>
    </tr>
    {% endfor %}

</table>

{% include '../user/user_page.html' %}


{% endblock%}
